package com.glasses.entity;

import com.glasses.orm.base.BaseBean;
import com.glasses.orm.dictionary.CommodityStatus;

/**
 * Created by ashin on 2018/8/9.
 */
public class Commodity extends BaseBean {

    /**
     * 商品名称
     */
    private String title;

    /**
     * 现价
     */
    private String currentCost;

    /**
     * 单位
     */
    private String unit;

    /**
     * 总销售
     */
    private int amount;

    /**
     * 封面
     */
    private String cover;

    /**
     * 说明
     */
    private String desc;

    /**
     * 类型名称
     */
    private String typeValue;

    /**
     * 类型
     */
    private String type;

    /**
     * 状态
     */
    private String status;

    /**
     * 返还积分
     */
    private Double backIndent;

    /**
     * 是否推荐
     */
    private int star;

    /**
     * 赠送无
     */
    private String extra;

    /**
     * 状态 - 中文
     */
    private String commodityStatusVal;

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public Double getBackIndent() {
        return backIndent;
    }

    public void setBackIndent(Double backIndent) {
        this.backIndent = backIndent;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getCommodityStatusVal() {
        return getEnumKey(CommodityStatus.class, status);
    }

    public void setCommodityStatusVal(String commodityStatusVal) {
        this.commodityStatusVal = commodityStatusVal;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeValue() {
        return typeValue;
    }

    public void setTypeValue(String typeValue) {
        this.typeValue = typeValue;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCurrentCost() {
        return currentCost;
    }

    public void setCurrentCost(String currentCost) {
        this.currentCost = currentCost;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
